/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.umlviewer.model;

import java.awt.Color;
import java.awt.Font;
import java.awt.font.TextAttribute;
import java.util.HashMap;
import java.util.Map;
import org.jdom2.Namespace;
import org.umlviewer.paint.PaintUtils;

/**
 *Interfaz con las constantes utilizadas en el sistema
 * @author Rafa
 */
public interface Constants {        
    
    //constantes relacionadas a la visibilidad de las clases, metodos, atributos
    /***
     * Public
     */
    public static int VPUBLIC = 1;   
    public static int VPROTECTED = 2;
    public static int VPRIVATE = 3;
    public static int VPACKAGE = 4;    
    
    public static char VSYMBOLS[]={'+','#','-','~'};
    
    //saltos de linea y espacio ocupado por las letras
    public static int SLETTER = 8;
    public static int SHEIGHT = 10;
    
    //espacio de nombres para leer etiquetas y atributos xmi:
    //EnterpriseArquitect
    public final Namespace XMINAMESPACE = Namespace.getNamespace("xmi", "http://schema.omg.org/spec/XMI/2.1");
    //magicDraw
    //Namespace XMINAMESPACE = Namespace.getNamespace("xmi", "http://www.omg.org/spec/XMI/20110701");
    
    //fuentes predeterminadas
    public final Font boldFont = new Font(Font.SANS_SERIF, Font.BOLD, 11);
    public final Font defaultFont = new Font(Font.SANS_SERIF, Font.PLAIN, 11);
    public final Font italicBoldFont = new Font(Font.SANS_SERIF, Font.ITALIC+Font.BOLD, 11);        
    public final Font italicFont = new Font(Font.SANS_SERIF, Font.ITALIC, 11);        
    public final Font underlineFont = new Font(PaintUtils.getUnderlineFontAtt(false));
    public final Font italicUnderlineFont = new Font(PaintUtils.getUnderlineFontAtt(true));
    
    //constantes para las acciones en la interfaz
    public final int NOACTION = 0;
    public final int ADDCLASS = 1;
    public final int ADDUSECASE = 2;
    public final int ADDACTOR = 3;
    public final int ADDASSOCIATION = 4;    
    public final int ADDMESSAGE = 5;    
    public final int ADDLIFELINE = 6;
    
    //color por defecto de dibujo
    public final Color DEFAULTCOLOR = Color.BLACK;
    //color de seleccion
    public final Color SELECTIONCOLOR = Color.RED;
}
